package net.soevar.database.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(schema = "public", name = "jobseeker")
public class Jobseeker implements Serializable {
	private static final long serialVersionUID = -2838031408233749505L;

	private String jobseekerId;
	private String jobseekerPassword;
	private String jobseekerNama;
	private Boolean isEncripted;
	private Boolean statusAktif;
	private Boolean statusApproval;
	private Date lastLogin = new Date();
	private String dirubahOleh;
	private Date dirubahTanggal = new Date();

	@Id
	@Column(name = "jobseeker_id", unique = true, nullable = false, length = 255)
	public String getJobseekerId() {
		return jobseekerId;
	}

	public void setJobseekerId(String jobseekerId) {
		this.jobseekerId = jobseekerId;
	}

	@Column(name = "jobseeker_password", nullable = true, length = 255)
	public String getJobseekerPassword() {
		return jobseekerPassword;
	}

	public void setJobseekerPassword(String jobseekerPassword) {
		this.jobseekerPassword = jobseekerPassword;
	}

	@Column(name = "jobseeker_nama", nullable = true, length = 255)
	public String getJobseekerNama() {
		return jobseekerNama;
	}

	public void setJobseekerNama(String jobseekerNama) {
		this.jobseekerNama = jobseekerNama;
	}

	@Column(name = "is_encripted")
	public Boolean getIsEncripted() {
		return isEncripted;
	}

	public void setIsEncripted(Boolean isEncripted) {
		this.isEncripted = isEncripted;
	}

	@Column(name = "status_aktif")
	public Boolean getStatusAktif() {
		return statusAktif;
	}

	public void setStatusAktif(Boolean statusAktif) {
		this.statusAktif = statusAktif;
	}

	@Column(name = "status_approval")
	public Boolean getStatusApproval() {
		return statusApproval;
	}

	public void setStatusApproval(Boolean statusApproval) {
		this.statusApproval = statusApproval;
	}

	@Column(name = "last_login")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	@Column(name = "dirubah_oleh", length = 100)
	public String getDirubahOleh() {
		return dirubahOleh;
	}

	public void setDirubahOleh(String dirubahOleh) {
		this.dirubahOleh = dirubahOleh;
	}

	@Column(name = "dirubah_tanggal")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getDirubahTanggal() {
		return dirubahTanggal;
	}

	public void setDirubahTanggal(Date dirubahTanggal) {
		this.dirubahTanggal = dirubahTanggal;
	}

}
